Metadata-Version: 2.1
Name: autosend
Version: 0.0.1
Summary: a simple tool that logs what is printed on the screen, and emails the logs to you
Home-page: https://github.com/flishwang/autosend
Author: flish_wang
Author-email: flish_wang@sina.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE

# Introduction
This is a tool that logs everything your program printing on the screen, 
and sends you an email when the program is finished or terminated.

# Usage
First, create ~/.autosend.yaml with the given template and then modify the configs. 
Then add the following line in your code:
```
import autosend
```

# yaml template
```
#  =========== autosend yaml template ============
# specify the email SMTP server
username: "username"
password: "password"
server: smtp.example.com
port: 25
tls: False
timeout: 15

# specify the email subject format, where: 
# {path} implies the work_dir running the python script,
# {curtime} implies the current date and time
# {status} implies the log type (may be running or complete) 
subject_format: "【符合保密要求，可在手机端查阅】{path}日志 [{curtime}] [{status}]"

# specify the email sender's and receivers' addresses
sender: "example@example.com"
receivers: 
- "example@example.com"

# send logs by email only if the program runs after the specific seconds
send_after_seconds: 3600

# send logs by email EVERY specific seconds if the program is keep running
send_periods: 86400
```

